package com.xqm.springcloud.comsumer;

import com.xqm.springcloud.myrule.MyRule;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @author ShiMing
 * @version 1.0
 * @name ConsumerApplication
 * @description TODO
 * @date 2020/8/20
 */

// Eureka和Ribbon整合以后，不用关心ip地址和端口号
@SpringBootApplication
@EnableEurekaClient
@RibbonClient(name = "SPRING-CLOUD-DEPT-PROVIDER", configuration = MyRule.class)
// 启动自定义策略
public class ConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerApplication.class, args);
    }
}
